/**
 * MineAdmin is committed to providing solutions for quickly building web applications
 * Please view the LICENSE file that was distributed with this source code,
 * For the full copyright and license information.
 * Thank you very much for using MineAdmin.
 *
 * @Author X.Mo<root@imoi.cn>
 * @Link   https://github.com/mineadmin
 */
import type { MaFormItem } from '@mineadmin/form'
import hasAuth from '@/utils/permission/hasAuth.ts'
import MaUploadFile from '@/components/ma-upload-file/index.vue'
import { concat } from 'lodash-es'

export default function getFormItems(formType: 'add' | 'edit' = 'add', t: any, model: any): MaFormItem[] {
    

      return concat([
    { label: '文件id', prop: 'file_id', render: () => MaUploadFile, renderProps: { multiple: false }, multiple: false },
    { label: '秒', prop: 'second', render: 'input', renderProps: { placeholder: t('form.pleaseInput', { msg: '秒'}) } },
    { label: '广播', prop: 'device', render: 'input', renderProps: { placeholder: t('form.pleaseInput', { msg: '广播'}) }, itemProps: { rules: [
    { required: true, message: '请输入广播' },
  ] } },
    { label: '类型 1:广播 2:喊话', prop: 'type', render: 'input', renderProps: { placeholder: t('form.pleaseInput', { msg: '类型 1:广播 2:喊话'}) }, itemProps: { rules: [
    { required: true, message: '请输入类型 1:广播 2:喊话' },
  ] } },
    { label: 'start_time', prop: 'start_time', render: 'input', renderProps: { placeholder: t('form.pleaseInput', { msg: ''}) } },
    { label: 'end_time', prop: 'end_time', render: 'input', renderProps: { placeholder: t('form.pleaseInput', { msg: ''}) } },
  ]);
}
